package com.lanou3g.ptp.warning.mapper;

import com.lanou3g.ptp.entity.TaskWarningPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TaskWarningPlanMapper {

    int insertAll(List<TaskWarningPlan> taskWarningPlans);

    @Delete("DELETE FROM task_warning_plan WHERE task_id=#{taskId}")
    int deleteByTaskId(Long taskId);
}
